
#ifndef __KEYFILE__
#define __KEYFILE__
#include <gio/gio.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

int32_t ofp_key_file_open(GKeyFile **file, uint8_t *file_name);
void ofp_key_file_close(GKeyFile *file);

uint8_t* ofp_key_file_get_string(GKeyFile* file, const gchar* group_name, const gchar* key);
uint32_t ofp_key_file_get_integer(GKeyFile* file, const gchar* group_name, const gchar* key);

int32_t ofp_key_file_set_and_save_integer(GKeyFile* file, char *file_name,
    const gchar* group_name, const gchar* key, int32_t value);
int32_t ofp_key_file_set_and_save_string(GKeyFile* file, uint8_t *file_name,
    const gchar* group_name, const gchar* key, uint8_t *str);

#ifdef __cplusplus
}
#endif


#endif

